package com.zhongfeng.api.modules.business.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongfeng.api.modules.business.vo.BusinessVo;
import com.zhongfeng.api.modules.business.vo.params.BusinessParams;
import com.zhongfeng.api.modules.end.vo.EndVo;
import com.zhongfeng.api.modules.end.vo.params.EndParams;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author blueCat
 * @since 2022/2/24
 */
public interface BusinessMapper {

    /**
     * 查询全部营销网关
     *
     * @return
     */
    List<BusinessVo> queryAllBusiness(Page<BusinessVo> page, @Param("params") BusinessParams params);

    /**
     * 添加营销网关
     *
     * @param params
     * @return
     */
    int addBusiness(@Param("params") BusinessParams params);

    /**
     * 删除营销网关
     *
     * @param id
     * @return
     */
    int deleteBusiness(Integer id);

    /**
     * 更新营销网关
     *
     * @param params
     * @return
     */
    int updateBusiness(@Param("params") BusinessParams params);

}
